<?php  $cedula=$_POST['cedula'];?>
<?php 
function Conectarse()
{
   if (!($link=mysql_connect("localhost","root","lenier2")))
   {
      
      exit();
   }
   if (!mysql_select_db("HSEQ",$link))
   {
     
      exit();
   }
   return $link;
}

$link=Conectarse();

$sql=mysql_query("SELECT ced_cliente FROM cliente WHERE ced_cliente=$cedula",$link)or die(mysql_error);
for ($i = 0; $i < mysql_numrows($sql); $i++) 
{
	$ced = mysql_result($sql, $i, 0);

}
if($ced==null){
header ("Location: menu.php");
echo "no cedula".$ced;
}
else
{
header("Location: enfermera.php");
echo "si cedula".$ced;
}
?>
